import { TOKEN_KEY } from '@/enums/cacheEnums'
// import useUserStore from '@/stores/modules/user'

import cache from './cache'

export function getToken() {
    return cache.get(TOKEN_KEY)
}

export function clearAuthInfo() {
    // const userStore = useUserStore()
    // userStore.resetState()
    cache.remove(TOKEN_KEY)
}
